fix darwin bootstrap errors due to <mutex>.