Fix a bug when pushing pointers of arguments into std::vector. (ocl module)

When argument pointers pushed into an vector and the pointers point to
address on stack, we need to make sure they are valid until kernels are
successfully flushed onto the queue.