Add the leak checker to AbstractByteBuf
Extract method
Fix Java 6 compatibility
Thread safety