encapsulate Lock into struct Receiver