refdb: bubble up errors We can get useful information like GIT_ELOCKED out of this instead of just -1.