locking workers when checking for work