contrib: gpg-error: sanitise POSIX lock object
This provides a sane portable lock object definition for all platforms with basic POSIX threads. This replaces the insane gpg-error build system attempting and failing to second guess the platform-specific size and alignment of pthread_mutex_t.
This fixes build on platforms not known to the contrib version of libgpg-error, such as Linux RISC-V.