[WFLY-1873] Invoking/removing/adding listeners needs to be synchronized

https://issues.jboss.org/browse/WFLY-1873

Fixes IllegalStateException from mod_cluster on shutdown.