Fix DEBUG_THREADS when lock is acquired in __constructor__