Fix deadlock issue in freeBlock
under FS prefix file:// should be treated the same as local FS
Merge pull request #165 from colorant/lock

Fix deadlock issue in freeBlock
Merge pull request #167 from Du-Li/master

under FS prefix file:// should be treated the same as local FS