synchronization of access to file