Use lock during car control to prevent race conditions