Fortran: fix dependency checks for inquiry refs [PR115039]