WFLY-1899: refactor how the Undertow subsystem sets up the security context