Inlining mutex lock/unlock methods.