Introduce consumer & provider lock.