Revert "Starting buffer refcount implementation."

This reverts commit 57a42d9006cd29beac502336a7b7c476a264e518.
Implement buffer reference counter using a Lua table