Fixed the bug where `counted_t<func_t>`s sometimes move across threads (c.f. Issue #1157).
added comment
merged in 1157 fix
fixed dumb merge bug
fixed compile error in gcc