Test for extra locks held in `handle_error` unconditionally