Use flock for $distfile downloading lock.