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