Management threads

Fixes for some issues with WFLY-3225 and WFLY-3090 that were noticed in QE testing of the EAP backport.