tls: make slab buffer's size configurable

see #4636

/cc @bnoordhuis @isaacs