Why did my phone reboot after copying an so file to the system/lib folder?
If you don't want the phone to reboot, push the so file directly to the system/lib folder. Don't make the sdcard folder an intermediary. So you do:

$ adb remount
$ adb push libfoo.so /system/lib