Fix queue condition on job locking queries.
Add str rep for Job instances.