Add some handle read/write helpers to mojo/common/test/test_utils.h