Implement orientation lock (helps prevent memory leaks)