Implement file mutex.