fix compile error with --disable-leakybucket

`do_bw` does not defined when add --disable-leakybucket compile option.