Replace uniqid calls with $this->getUniqueID so tests pass again on windows

@MorrisJobke @LukasReschke 
Yes, otherwise https://github.com/owncloud/core/pull/12544/files#diff-11 cant use it