In 1974, this nation withdrew from NATO - a situation that was precipitated when another NATO member invaded an ally. Identify this nation which saw the collapse of its EOKA-B (and US supported) military junta in the wake of two invasions against its ally, but despite restoring its democratic government, remained out of NATO until 1980.
Greece