Cant pass locks by value