ISPN-3354 Multiple events on the local node with Infinispan 5.3.0-final

Also, I fixed a bug taht could cause inconsistent data in replicated
mode and added tests for that.
ISPN-3722 State transfer must be enabled for Lucene Directory if clustered caches are used
Fixed typo: hasSharedCacheLoadOrWriter -> hasSharedCacheLoaderOrWriter