ci: Add lint check for submodules.
Created by: varungandhi-src
This should prevent someone from re-introducing them without realizing that these cause a slowdown in build times.
Follow up to #33384 (closed).
Test plan
Checked that the error triggers locally after adding a .gitmodules
files.