Replace recursive_mitex with mutex.

Simple mutex is a little more efficient.