Implementation of lockless freelist.