Phase-sensitive reentrance into the normal state of mesoscopic SNS structures