Fixes an issue where id generator picked up freeId calls during recovery

where it shouldn't have done so. It's due to a recent change removing the
recovery flag for the stores. Now setStoreNotOk() sets idGenerator null so
that even if the id generator was opened cleanly, but later we found out
that the store needed recovery we would clear it so that the id generator
wouldn't pick up freeId calls during recovery.