Don't hold value locks so long

Assume that it isn't useful to hold value locks when locking rows. Immediately
release value locks when it's clear that an insertion won't proceed.