Thread: improve async_func to try to solve msvc issue with executor.

[SVN r86744]