Add wrapper function for total_seconds()

Fixes an issue related to #10443. Proposed fix doesn't work on Python <= 2.6 because they don't support total_seconds(). Added a wrapper function to salt.utils.

Pull request is for the 2014.1 branch since it looks like the job cache code has changed radically on develop.