cleanup box dir when freeing lock