Hold GetTopics API return until related code finishes in the other thread
Issue: Crash happen Get Topic just after Topic registration.
(between RegistrerTopic and GetTopics/GetConsumerTopic APIs)
Fix: apply condition variable to RegistrerTopic API logic and
GetTopics/GetConsumerTopic API logic.
Other Fixes:
locking the NSProviderInterface.
modify unittest for functions of 1 and 2.
Change-Id: Ia8e75d7b21198b3d4c3810050baa0867d60eeb78
Signed-off-by: jaesick.shin <jaesick.shin@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/11365
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>