Test shared lock
Cleanup memory implementation