bugfix: do not use biow->n_overlapped outside critical section.