Return state data for specified id and then remove it
ns_state_restore returns an ns_set containing the state data for the specified state id. If there is no such state id, "" is returned instead. After returning the state data, the state data is removed from disk. ns_state_restore is equivalent to ns_state_view followed by ns_state_delete. See the "Maintaining State" section for configuration information.