Fix EZP-20640: Subtree limitation for the state/assign does not work

# Description
When setting subtree limitation on changing the state of an object, the limitation does not work. The feature had been forgotten. The fix is based on another subtree limitation use case.

# Test
Manual test and legacy-kernel test suite.