Fix failing TestGitReceivePackSuccess
After gitaly!4766 (merged) has been introduced, the test started to fail because we basically cancel the git-receive-pack after the output is received
This commit gracefully closes the connection to make the test pass