Lock an entity's rigid body against moving along chosen axes. Each axis flag is independent, so locking X and Y lets the body slide only along Z — a rail or track. Returns the entity ID.