Faster Memory Collection

With the latest release (4.1.2) the overhead of the memory management is 2% to 6%; down an order of magnitude. Made changes to thread locking, was shocked and verified the results on Windows and macOS.