[Masking] Skip linear layers for the default full-attention mask (#50059)
* [Masking] Skip linear layers when choosing the default full-attention mask layer
* simpler
* improve the test a bit
---------
Co-authored-by: Paul Pak <paulpak58@users.noreply.github.com>
Co-authored-by: Cyril Vallez <cyril.vallez@gmail.com>