LPS-49970 allow redundant closes when deleteOnClose = true

ByteArrayFileInputStream allowed closing the stream multiple
time *except* when `deleteOnClose` was enabled.

It seems all Liferay custom InputStreams allow closing an already closed
stream; this commit makes ByteArrayFileInputStream follow that same
pattern also when `deleteOnClose` is enabled.