move concurrent stuff from libextra to libsync