[SPARK-3546] InputStream of ManagedBuffer does not close and causes running out of file descriptor