The two-pole nature of the $\Lambda(1405)$ from lattice QCD