tgsi: fix parsing of shared memory declarations