base: extract mutex.h from logging.cpp.
am: 63bdcb57aa

Change-Id: I93575399e1dec5e51a897904aaa38997360ddc2f