When NN deletes a large directory, it will hold the write lock long time. For improving this, we remove the blocks in a batch way. So that other waiters have a chance to get the lock. But right now, the batch number is a hard-coded value.
We can make this value configurable, so that we can control the frequency of other waiters to get the lock chance.