Revert "[api] Skip set_expiry before_filter for states controller."

This reverts commit 3f8b8076e96406af4050da5cc842a5c925dce8db.