Unlock the global mutex when returning after a failure.

When there is an error compressing or decompressing, blosc currently does not release the global lock when returning.