Thermo-magnetic effects in quark matter: Nambu-Jona-Lasinio model constrained by lattice QCD