The keeper of a common lodging-house shall, at all times when required by any officer of the local authority, give him free access to such house and every part thereof.