MODE-2221 Made sure SelfClosingInputStream always closes the underlying InputStream.

Also, made sure this type of stream is returned when calling `property.getBinary().getStream()`. Up until now, this type of stream would only be created when calling `property.getStream()`.