Merge "Add synchronized to Deflater.needsInput()"