Last remaining uses of these utilities except for ThrowFn were removed in https://github.com/chaincodelabs/libmultiprocess/pull/31.
Last remaining use of ThrowFn is removed here. After C++14 it is easily replaced with a perfect-forwarding auto&& lambda.
Immediate motivation for this change is to fix C++20 compilers complaining about reference to std::result_of in the unused code: https://github.com/bitcoin/bitcoin/issues/29248