mutex platform dependency fix