md: fix deadlock when stopping arrays