For POSIX systems, lock object may be determined more easily than current gen-posix-lock-obj running on HOST system.
On BUILD system, just compile following for the HOST system:
#include <pthread.h> pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER;
When mtx goes into .bss section, all the content is zero.
That's the cases (for most systems, other than macOS).
This can be checked by configure when objdump/readelf is available.