[tests] Fix check-gdb Makefile target by disabling forking in the tests.