thrd tests: Add unit test for thrd_exit. * tests/test-thrd_exit.c: New file, based on tests/test-thrd_create.c. * modules/thrd-tests (Files): Add it. (Makefile.am): Compile and run it.