Fix deadlock issue in freeBlock
Merge pull request #165 from colorant/lock

Fix deadlock issue in freeBlock