Tests SETNX locking.