Added expire-argument to lock