Add pidfile option to the golang implementation

This is required to handle docker-registry with startproc.