@Override
  public void profileCreated(Profile profile) {
    if (profile instanceof GatewaySenderProfile) {
      GatewaySenderProfile sp = (GatewaySenderProfile) profile;
      checkCompatibility(sp);
    }
  }
The profile will be created when the sender is added to the cache. here we are not starting the
sender. so we should not release or acquire any lock for the sender to become primary based on
creation only.
geode-core/src/main/java/org/apache/geode/internal/cache/wan/GatewaySenderAdvisor.java