tests: Add gem_close_race

The intention is to exercise #70784. Yet the first challenge is make the
test suite happy.
3 files changed