lock should expire automaticaly if lock owner gone

Currently if redisson client was shutdown abnormally locks created by this client will  remain forever.
This solution will create all locks as keys with expiration time set in redis. I'm not sure if this is best solution and what to do with lock() - lock(time, unit) - lock() sequences but it works for me.
Any suggestions or changes are welcome.