[boost] [shifted_ptr] Updated thread and <const T> support