refs: prepare `refs_init_db()` for initializing worktree refs