LDAP: fix background job, resolves #3528
Merge pull request #3778 from owncloud/fix_3528

LDAP: fix background job, resolves #3528