[C++11] Replace OwningPtr with std::unique_ptr in places where it doesn't break the API.

No functionality change.