Why is a document placed in a locked folder? How can I reproduce it?

today, when i get error when save document:


i saw this solution Unable to save employee details - #2 by Jeel

but i dont understand why my record being put in a locks folder?.
How can i reproduce the error ?

@meeeeeeeee check this Unable to save employee details

@Jeel

tks for your solution, but i want to know why my document being put in a locks folders and how to reproduce it by my self.

Finally, Is there a way to delete it on the desktop screen?

@meeeeeeeee check this frappe/frappe/utils/file_lock.py at develop · frappe/frappe · GitHub