fnmatch: add a test for glibc's Bugzilla bug #12378