Removed session locking on write, added unlock on destroy