Fixed libprocess tests due to the new io::read semantics.

Review: https://reviews.apache.org/r/24772
Cleanup mesos due to the new io::read semantics.

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