(ITS#7594) incomplete MDB subdb cursor cleanup