global: drop mock dependency and use unittest.mock

Since this module only supports python 3.5+ the mock dependency can
safely be replaced by the Python standard library unittest.mock
13 jobs for 46-create-api-to-get-all-active-background-jobs in 13 minutes and 43 seconds (queued for 5 seconds)