Fix read-only mode startup migrations issue.