SPIR: fix names for local memory decls.