doc: change dgram to socket for properties of dgram.Socket

Fixes #4919.