Merge pull request #6 from Maxime2/master

pass bare variables to BSON_UINTxx_TO_BE macros as they may use its parameters several times
context: make sure we pass a uint16_t to endianness macro.
pthread version of bson_context_get_oid_seq64_threadsafe and bson_context_get_oid_seq32_threadsafe