Mutex locks for IO operations