[libqb] [PATCH 2/2] rb: organise the locks/sems a bit better