optimization slab align calculate method and fixed a deadlock

i think & is a little more efficient than mod.  
in slab.c, when stop_slab_maintenance_thread() function been called, slab_rebalance_thread maybe will not be waked up forever.