log-lock workaround