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

Change-Id: I99116770fd766686f6b7c6fad6e21abeb47d2d2a