Protect against re-entrance