ffstorage: file restore is done
ffstorage: rename function argument
ffprotocol: fix possible failure of unlocking after connection closed