A former judge engaged in serious corrupt conduct leaking an inquiry report sparked by the prosecution of former Liberal staffer Bruce Lehrmann.