MFC r281437 (by mjg@):
Replace struct filedesc argument in getsock_cap with struct thread
This is is a step towards removal of spurious arguments.