TTL for template locks so they are not kept forever