Release statemgr lock if bootstrapping fails.

Now that clients can exist and hold a statemgr without necessarily being bootstrapped, we need a way to make sure that the statemgr lock is dropped when bootstrapping fails, so that other clients aren't blocked.

Followup from !299 (merged)