Added a synchronization primitiv to the scheduled file store to counter a problem in mapdb queues