Use mutexes instead of semaphores in I2O driver