Changed bit conversion code

> Bit conversion code now uses per-thread static buffers instead of
locking on a buffer.

The code is yet unused, though.