Merge changes Ie15fcb8f,I0a895911

* changes:
  base: add quick_exit emulation.
  base: extract mutex.h from logging.cpp.