[tests] add support for stopping the process to the test harness

Summary: This lets us add tests that require Watchman to read a series of events at once.

Test Plan: `arc unit --everything` on Linux and Mac.

Reviewers: wez

Reviewed By: wez

Differential Revision: https://phabricator.fb.com/D1256312