Protect module callbacks with read semantics against cancellation.