buffer: fix race in gegl_tile_lock spotted by Micheal Henning