Fix a timing issue in server-itest.cpp

The ServerShouldHandshake test wasn't properly stopping the service.
Without that, it is not guarranteed that the TCP port is successfully
released and available for the next test case.