lock when logging