If lock_range returns an error then the caller won't unlock the range. Make sure to unlock the range if we have it locked when we get errors that we're going to return to the caller. Signed-off-by: Zach Brown <zab@versity.com>