Combining 2 ctx and wait queue's locks to 1