Restrict ADL for reference_wrapper
and thread
#3101
Merged
reference_wrapper
and thread
#3101