Check checkpoint master key at every startup

Also resets the sync checkpoint if needed.