Partially revert mutex code.