fix missing errno import

trivial fix, this import was missing, but it's only triggered when there's a
race condition, which is why this hasn't come up.