ITS#7594 better fix

Update the subDB cursor, don't invalidate it
ITS#7594 more for subDB cursor fix
Return fresh overflow pages to current pghead

And remove them from the current dirty list.
Make sure mdb_stat() gets valid data
Fix CURSOR_NEXT/PREV on emptied DB