Refactoring Recid Locking, fix some concurrency issues with AsyncWriteEngine
Store was not synced on close, OOOPS.