Some JGroups and Infinispan small improvements


https://hibernate.atlassian.net/browse/HSEARCH-1299
https://hibernate.atlassian.net/browse/HSEARCH-1300