ssl: use bson_strnlen() for platforms without strnlen().

Fixes build on osx 10.6.8.