Merge "logd: move leading_dropped logic into FlushTo()"