Tweaked TLS data cleanup in integral engine pool to account for the main thread being involved