File io syncing for enqueue and dequeue.