[PATCH 4/7] lib: Add gem_userptr helpers