Revamped the PHY code for the 82571 controller

1. Added locking and unlocking between software/hardware
2. Modified locking code for 82571
3. Modified the PHY reset code for 82571