Fix issue with thread pool inherited access control context