Always initialize threading before allocating a dynamic mutex