darwin-proctitle: avoid calling pGetCurrentProcess

Use some black-magic from Apple to change process name without getting
a "Not responding" tag from Activity Manager.

fix #966

/cc @bnoordhuis

Also, it might be a good idea to backport it to v0.10.