implement true atomic built in for luagit