Change semaphore to a lock.

Signed-off-by: Martin Raspaud <martin.raspaud@smhi.se>
Add a noisy publisher.