Controlling Cherenkov threshold with nonlocality