Added a default TTL to lock factory.