The issue was in fact a feedback loop between render database init which needs to know which render layers to initialize and scene update for newframe which needs to know which layers to update. Worked around by updating scene animation before render database initialization which isn't really ideal, but doesn't really have much better alternative.