Fix wrong tracing of lock acquire