Add setRefCnt(int) method to AbstractReferenceCounted(ByteBuf)

- Fixes #1265