move concurrency stuff from libextra to lib sync