Ticket 48388 - db2ldif -r segfaults from time to time
Bug Description: db2ldif starts all the plugins before generating
the ldif file. If the retro changelog is enabled
and it starts to trim itself the server can crash
when cos tries to process the retrocl triming
operations.
Fix Description: First, fix the NULL dereferences in COS. Then
when doing a "db2ldif -r" only startup the
plugins that "db2ldif -r" needs (which is just
the replication plugin and its dependencies).
Revised the plugin_startall() function to remove
unused parameters (start_backends & global_plugins)
Also did a little code clean up slapi_utf8casecmp.
https://fedorahosted.org/389/ticket/48388
Valgrind: passed
Reviewed by: nhosoi(Thanks!)