writeback: fix possible race when creating bdi threads