https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65343
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- Maybe we want to placement-new the mutexes into a buffer so they are never destroyed, although on mingw that will show up as leaked resources at program shutdown (and this is only really a problem on mingw as we don't need to run any destructor on the mutexes for most targets).