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 (std::map)
to replace the base with the corresponding shared memory address by
using GMap.