Fix bug in cl4_prof_get_agg
Fix event related bug in cl4_buffer_map()
OCL stub: fix event related bugs in enqueue functions

Also move these functions from ocl_memobject.c to ocl_enqueue.c