buffers: minor improvment for gegl_buffer_sample in the _NEAREST case

call gegl_sampler_gtype_from_enum() only if needed,
actual speedup measured for the _NEAREST case: 1.2x