os, syscall: implement Getwd on darwin using getattrlist

Fixes issue 4807

R=golang-dev, rsc
CC=golang-dev
https://codereview.appspot.com/12349044