lstack: Use bit count for allocator

Signed-off-by: Michael Buesch <m@bues.ch>