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 eraseSharedMemoryBases

This function is used to erase all the allocated shared memory from the
host module after the complete of the GPGPU code generation.