Don't allow using or allocating a buffer after the first state transition Bug: 35467458 Change-Id: Ia76c8cec8ad2abb95ca29b2a89075f7acab4b174 (cherry picked from commit e25320450ca414dd859fd5d80bcd18ecc91630de)