Set previous decl of the detached decl to point to the valid head of the new redecl chain.
We don't need to iterate over the deserialized macro for the sanity check.
Revert the macros just once.