Open pidfile in 'r+' mode on all platforms for compatibility with illumos/solaris.