workers: Remove lock from master worker and get rid of base_worker.py