shine_putbits bug fix!

1. If cache_bits is 0, and N is 32, the result is wrong.
2. The last 4 bytes of the lastest frmae will be lost.
Debug message