Restore missing check for flockfile and getc_unlocked

Ondřej Surý requested to merge ondrej/restore-flockfile-check into master

Merge request reports