SONARJAVA-838 RSPEC-1860 Synchronisation should not be based on Strings or boxed primitives