Disable netgo for dynbinary builds

It's not necessary to use the netgo implementation for non-static builds. :)

Fixes #5813