(maint) Check that puppet's master process has finished

This avoids occasional errors where the next test's
with_puppet_running_on tries to start a new master before the previous
test's has shutdown completely.