Add support for conflict handlers in ShMem.