Fix race condition when updating configuration from file

As reported by @Xelethor, sometimes it tries to update the LDAP
configuration when the LDAP server itself is not up already.
Add tries, and try_sleep for those specific exec do solve the issue.