tests/gpgscm: Dynamically allocate string buffer.