Lunar close encounters compete with the circumterrestrial Lidov–Kozai effect