pthread: Do not use a half updated context as master for deallocation.