XNIO-235. use doPrivileged() block to shut down executor

A backport of XNIO-235 to the branch 3.0  (EAP 6.4).

JIRA: https://issues.jboss.org/browse/XNIO-235