pass bare variables to BSON_UINTxx_TO_BE macros as they may use its parameters several times

BSON_UINTxx_TO_BE macros may use system macros to swap bytes which may use its parameters several times. Thus we ought to pass a bare variable to BSON_UINTxx_TO_BE().