Fix some race conditions

I've ran docker-stress for two hours without any race conditions and deadlocks.
Why do you need the new type and just just dereference the pointer into a copy?