Resolves https://github.com/spring-projects/spring-integration/issues/3470 Also fix `ByteBuffer.clear()`.