Safety chain and door-lock checking function