[backport] fixes #2679, implemented proper isSameRM() methods on the XaResources based on cluster group name