Localizing merging black holes with sub-arcsecond precision using gravitational-wave lensing