scheduler : partial revert of SQL optimisation

this is partial revert of commit https://github.com/mandriva-management-console/mmc/commit/886794a61b60646f52667d2eb57d69598c9934fb

This fix is applied only on the treatement of unprocessed tasks.