check-exports test: Filter out symbols that start with an underscore

These are usually internal to libc, and such symbols are exported in
the shared library on some platforms.
Merge branch '2.4'