Restore missing check for flockfile and getc_unlocked

Merge request reports