Ticket 47451 - Dynamic Plugin - various fixes
Description: The previous commit 0e0848a8385463532d53db94c0c8cae912c30eb4 on
master branch was wrong, and broke the other plugin tasks.
Upon further testing, some memory leaks and crashes were detected
and fixed:
automember.c - Fix memory leak, and PRCList corruption
dna.c - Fix crash caused by event context not being freed at plugin stop
memberof.c - pass in the correct function argument, not the pblock
rootdn_access.c - Fix memory leak
plugins/uiduniq/uid.c - Add start and close functions to properly handle plugin restarts
dse.c - Improve plugin restart handling, and properly handle plugin registration
plugin.c - Properly wait for a plugin to finish before restarting it.
task.c - Proprely handle the task function arguments
https://fedorahosted.org/389/ticket/47451
Reviewed by: nhosoi(Thanks!)