Fixed trivial locking issue in the trunc method of libradosstriper - Giant branch

Trivial mistake leading to absence of file locking in case of truncation.
This pull request fixes it in giant. It is the backport of pull request #2951