lockfree: convert compile-time assertions to run-time assertions
patch by hartmut kaiser
Signed-off-by: Tim Blechmann <tim@…>