Do not hold synchronization locks if tracing is not enabled

Change-Id: Ia17e2269d088da472dce2e248fc9f85877be5d77
1 file changed