fix deploy cron taskscheduler

The crontask did not worked on dynamic groups with Software global criterion because of missing
SESSION entities variables.

references #2347
fix another deploy crontask bug

The getRunningTasks() method used in post_getFromDB was interfering with crontask trigger.
This was caused by the getEntitiesRestrictRequest method which needs some SESSION's entities
variables when they are not passed directly as parameters to this method.

references #2347
Merge branch 'glpi0.84+fix_deploy_crontask' into glpi0.84

fixes #2347