const MANAGED_REFS: u8 = 4;
The anchors a session that names its references has the library hold: GOLDEN and ALTREF, and the ones they replaced until a picture releases them.