[tor] fixing socket status using lsof and adding a mechanism to get notification for circuit state