Fix flaky cat-file test
Fixes #1814 (closed)
I hope this does it; I was not able to reproduce the bug. I think the bug is about mistaken assumptions about scheduling. What changes in this MR is that we give the goroutine we're waiting for more time to do its job.