Release system lock on error, and increase its path length