Make sure setnx's result is an integer

Tried `redis-locking-worker` on different redis providers and some of them returned `setnx`'s result as a string. This makes sure it's always an integer.