Check mutex's allocator.

 * Check mutex->allocator to avoid segfault.
Added allocator checker.

 * Add `AXIS2_ALLOCATOR_CHECK` macro that helps to check if
   an allocator is correct.