Fixed reset of wanted queue in diskscanner

Only clear the wanted queue when the diskscanner is actually allowed to
run (when it has the wanted queue lock)