there is a locking table in the database, and normally, you can empty this table (not sure what file you are deleting). However, the locks should not happen permanently, if that is the case, there might be something wrong in your setup (on larger setups, please try to use redis if possible):