Lock edit is now thread safe