Merge pull request #127 from preetbhansali/patch-1

Race condition in nc_ps_lock