Resolved dead lock in bmp map parser using recursive_mutex.