We must take a write lock here because `GetNonce` calls `StateDB.GetStateObject`, which mutates the DB's live set.