[TPL] Replace implementation by Microsoft reference sources

Depends on https://github.com/mono/referencesource/pull/4
indentation looks off