[FLINK-19096] [sdk] Rework PersistedStateRegistry registration methods

This reworks the `registerValue` / `registerTable` etc. methods on
PersistedStateRegistry to directly accept a constructed PersistedValue /
PersistedTable instance. This allows us to avoid having to synchronize
those methods and the state class constructors.
4 files changed