Thread-safe blosc, lock mechanism

As discussed in the blosc mailing-list, here is a patch that permits the use of Blosc from multiple threads without race conditions.

A parallel benchmark was also added. Not sure if it exactly fits your needs: the test demonstrates the operation of blosc with multiple threads, but the way the results are saved to a file is probably not the most flexible one.

Thanks,