Fix a possible race condition in interposition