If getoutputpath cannot find a valid path, release the lock and change back the journal name.