Lock for eligible_masters

The data structure eligible_masters is being shared between IPC and main
thread. So for safe access, managed it with controller lock.

Signed-off-by: Srijan Mishra <srijan23mishra@gmail.com>