WFLY-2743 Fix up some other static references to the ServiceContainer

Also make sure that code access it in a privilidged block if appropriate