Machining Drive-by-wire lock