Use rwlocks in jobmanager