Add setRefCnt(int) method to AbstractReferenceCounted(ByteBuf)

- Fixes #1265
Merge remote-tracking branch 'upstream/master'