WFLY-1595 Fix possible race in proxy definition