Fixes: [40714] Ensure process_attach callbacks are not executed too early
