commit-graph.c: write non-split graphs as read-only