fixes problem with spaces in ferret_getdata
added lock and unlock magics
Merge pull request #1 from koldunovn/master

fixes problem with spaces in ferret_getdata
and add %ferret_lock, %ferret_unlock