bson: generate better random number for bson increment.

And remove that stupid mistake where & was actually %.

Generate the seed for rand_r() using an xor of current seconds,
current milliseconds, and process id.