JCR-2768 use ghost references for unclosed session handling