Fix OPAL-1748: Memory leak when importing large value sets from remote Opal
(cherry picked from commit 4fad1bd)