CBQE-0: get proc from global array

Change-Id: I108d227ac45ea02fe833ccafe5b54526c2cfacde
Reviewed-on: http://review.couchbase.org/30481
Reviewed-by: Tommie McAfee <tommie@couchbase.com>
Tested-by: Tommie McAfee <tommie@couchbase.com>