raco setup: fix exit code on doc error
raco setup: fix a read-only use on the docindex database

Merge to v6.0