Factor mutex into own module