writeback: avoid unnecessary calculation of bdi dirty thresholds