[libqb] [PATCH 2/2] rb: cleanup the semaphores