The Lock keyword is used in these contexts: