bugfix: socket read lock/unlock