lalinference_pipe_utils.py: fix set_cache method