Mechanics of Shape-Locking-Governed R2G Adhesion with Shape Memory Polymers