1. Add wait(), signal() for HCIWorker to synchronize with HCICoordinator.
2. Code refactoring.