Bugfix: release mutex even on premature return.
Bugfix: release mutex even on premature return.

toni-moreno/snmpcollector,toni-moreno/snmpcollector,toni-moreno/snmpcollector,toni-moreno/snmpcollector,toni-moreno/snmpcollector