md/raid5: make sure to_read and to_write never go negative.