Extension socket with hinged lid