Fixed trivial locking issue in the trunc method of libradosstriper

Trivial mistake leading to absence of file locking in case of truncation.
This pull request fixes it in master, but it should probably also be cherry-picked into the giant branch. Tell me if you want me to do it and open another pull request for this.