SONARJAVA-785 RSPEC-2235: IllegalMonitorStateException should never be caught