user_ldap: Reimplement convertSID2Str() without BCMath dependency.

Also explicitly format sub-id integers as unsigned, which is required for
32-bit systems.
Merge pull request #11172 from owncloud/user-ldap-no-bcmath

Fix ldap convertSID2Str() / Remove BCMath dependency