Phased locking of two lasers with self-adjusted minimal coupling