Reserve first bit in bit allocator for main thread of context allocator and remove special cases in context allocator. Without the reservation there is is one context outside the context area allocated. Fixes #1100
ref #989