Title: #160: Fix files provider reallocation logic
Fixes a potential crash in the files provider. A test and a detailed
explanation are included in the commit message.
To pull the PR as Git branch:
git remote add ghsssd https://github.com/SSSD/sssd
git fetch ghsssd pull/160/head:pr160
git checkout pr160