adding timeout to cron lock file

fixes https://github.com/owncloud/core/issues/3221

This PR leaves the cron code almost untouched to allow backporting - if required/requested.

Overall the cron code needs refactoring to allow unit testing and proper code structure.

@PVince81 @MorrisJobke @Raydiation please review

@karlitschek @craigpg @MTRichards for your information
> What is this? Hours? Days? Minutes?

This is supposed to be minutes - will add that - THX for spotting.

Speaking about pure owncloud core 30 minutes are enough from my understanding