avoid accessing mutex memory after atomic unlock