On Mac OS Version > 11.0.0, running ./contrib/install/db4.sh `pwd` on master leads to the following error. \
0WARNING: NO SHARED LATCH IMPLEMENTATION FOUND FOR THIS PLATFORM.
1configure: error: Unable to find a mutex implementation
As documented in #20195, the reason for this error is that Apple has enabled -Werror=implicit-function-declaration by default.
The fix noticed in that PR was to set CFLAGS to “-Wno-error=implicit-function-declaration”.
This PR adds that fix to the contrib/install_db4.sh
file so that it can run smoothly for Mac OS version > 11.0.0