give file and line in simple lock error diagnostics