Safety cleanups: ensure OUTFD is -1 when closed.
[Bug #39158] Source cleanups suggested by cppcheck utility.
[Bug #39310] Parse simple pattern prereqs for globbing.

We tried to get some efficiency by avoiding a parse_file_seq() for simple
pattern prerequisites, but this also means no wildcard expansion was
happening, so add it back.  Add regression tests for wildcards in target and
prerequisite lists.