Create filelock when Task is started + try to run the tasks before starting the scheduler.
Merge branch 'master' of https://github.com/gmatteo/pymatgen