Refactored os::user to return a Result.

Review: https://reviews.apache.org/r/22722/
Updated mesos to use refactored os::user call.

Review: https://reviews.apache.org/r/22722/