std::io: Modernize some constructors

Part of #3853
std::util: Modernize NonCopyable constructor

part of #3853