locking only in subquerybuffer