Issue #15101: Make pool finalizer avoid joining current thread.