Merge "Add methods to lock and unlock HardwareBuffer." into main