kqueue: fix incorrect mutex used in Close()

identified at https://code.google.com/p/go/issues/detail?id=8282#c5
update example
v0.14.1