sync-with-gerrit: strip out submodules from extensions

We did filter extensions submodules to not add them as submodules but
they were still listed in .gitmodules.  Stripping them a bit earler make
sure we will totally ignore them.

Change-Id: If1938362d5ab0d30db92d0cc1a80604a46cbc36c