WFLY-1595 Fix possible race in defining proxies