Replace kernel_*_stmt's base with shared memory address.

In case shared memory code generation is used, set map of an array id
in IDToValue to its corresponding shared memory address so that we can
create a correct share memory load/store. Add SharedBaseAddrs to
replace base adrress with the corresponding shared memory one by GMap.