Starlight polarization and CO observations towards the Lupus clouds