Fix #1840 : Refactor last_seen_complete code
Make sure prioritize first/last doesn't enable pieces in
a file marked do not download. refs #2211