Make sure the pth_msgport_t exists before trying to lock it's mutex in