Execute region enter/leave events thread safely.