[#1668] Remove synchronized usage in JZlibEncoder and JdkZlibEncoder