[2.2] 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 freeId checks storeOk flag.