filedesc: tidy up fdcheckstd

No functional changes.