Require StateManager callers to open their own transactions.

Reviewed at https://reviews.apache.org/r/26899/