writeback: fix race that cause writeback hung