tls: make slab buffer's size configurable

see #4636