Allocate mutex on stack, spotted by davec.