Merge "Don't allow using or allocating a buffer after the first state transition" into nyc-dev am: 3294a9fe16 am: b706fb9d69 am: faf128c93d
am: 75aa7716c4

Change-Id: Ia496d982d3321baf8506218ea7deda294b0e13e6