Defines context for "apply an orientation lock" and "lock the orientation" (fixes #44)