only check serial when applying the first plan
only check serial when applying the first plan

Ensure that we still check for a stale plan even when it was created
with no previous state.

Create separate errors for incorrect lineage vs incorrect serial.

To prevent confusion when applying a first plan multiple times, only
report it as a stale plan rather than different lineage.

hashicorp/terraform,rnaveiras/terraform,rnaveiras/terraform,rnaveiras/terraform,hashicorp/terraform,tommynsong/terraform,hashicorp/terraform,tommynsong/terraform,tommynsong/terraform