Making `RedisLock` as `private` allow to get rid this extra outer check.
`if (getClass() != obj.getClass())` does the stuff in that case