Use rwlocks for syncronization instead of channles in jobmanager