added mutexes to not double free memory in slicing, also slice counter
added mutexes to not double free memory in slicing, also slice counter

postfix/algoimpl,postfix/algoimpl,twmb/algoimpl,postfix/algoimpl,twmb/algoimpl,twmb/algoimpl,postfix/algoimpl