Slightly relax "sem_post" name checking.
* gdb.threads/staticthreads.c, gdb.threads/staticthreads.exp: New files.