[IMPROVED] Check if cron is running in PHP scripts

* Ensures we don't spawn more than one PHP process
* Will require admin-intervention to reset the cron_active flag in DB

Shouldn't trigger often but may help people.
Merge pull request #1705 from MPOS/cron-check-active

[IMPROVED] Check if cron is running in PHP scripts