Stop using NSLog in internal functions because it seems to acquire a mutex that violates our locking order and causes deadlocks