fix(lock): return the semaphore count on error
fix(lock): return the semaphore count on error

marineam/locksmith,crawford/locksmith,jonboulle/locksmith,chrissnell/locksmith,mischief/locksmith,marineam/locksmith,coreos/locksmith,mischief/locksmith,crawford/locksmith,coreos/locksmith,jonboulle/locksmith,chrissnell/locksmith,npateriya/locksmith,npateriya/locksmith