game: Refactor resource scheduling in update_flags().

Split resource scheduling into schedule_slot_unknown_dest() and schedule_slot_known_dest().
Fix #89: Eventually return resources to inventory even if no path exists when produced.