Revert "libc: add hidden calls to pthread cleanup funcs"