Current Shaping and Multi-thread Activation for Fast and Reliable Power Mode Transition in Multicore Designs