[#1878] Fix leak of ByteBuf when masked payload is used