Lock, a printed circuit board