looks like an issue similar to the one fixed in
ITS#7256, this time it is only BerkeleyDB 4.8 that seems to complain
(have not tested with 4.7).
Can you test with the latest commit at branch ITS8291 in my github repo
I've tested your branch ITS8291 with this commit:
Author: Ondřej Kuzník <ondra(a)mistotebe.net>
Date: Wed Dec 16 13:47:17 2015 +0100
ITS#8291 Reopen cursor after delete
./run -b hdb test007 works perfectly now.
But ./run -b mdb test062 fails with:
ldapsearch should have failed with Critical extension is unavailable (12)!
./scripts/test062-config-delete: line 164: kill: (18467) - No such process
Likely the latter is unrelated.