ISPN-4424 ReplaceIfUnmodified is broken under concurrent execution

https://issues.jboss.org/browse/ISPN-4424