Fix FIPS-140 power-on self-tests
Backport upstream FIPS-140 power-on self-tests changes. This addresses
the bug bz#1813384. This also includes a backport of a small fix to the
gnutls-serv application to address the issue reported in rhbz#1816583.
Resolves: #1813384, #1816583