The reason is that when the dhclient startup is triggered by a commit, it calls dns_forwarding.py in a special "out of CLI" mode where return_effective_values functions are used, but those functions do not work properly until the commit completes, so there's a race condition.
We may be able to avoid it by checking the lock with functions mentioned in T1503.