getlogin_r is specified by POSIX to to take a size_t len, not int. Fix our version to do the same, bump the symbol version due to ABI change and provide compat.
This was reported to break compilation of Ruby 2.8.
PR: 247102
Submitted by: Bertram Scharpf <software@bertram-scharpf.de> (original), cem (ABI compat)
MFC after: 3 days