release lock when loading octomap from file fails