Added check for key mistakenly created without TTL to avoid deadlock