unregisterStateHandler
Called when a resolve or layout computation finishes and its result has been committed or discarded. Removes the StateHandler from the pending set and clears the cached initial states if no other computations are in-flight.
Callers must ensure this runs AFTER committing or discarding the computation result, not inside the resolve/layout computation itself. Use InitialStateScope to guarantee correct lifecycle ordering.