My iPhone 4s has the notification bar glitch, and I've been researching on how to fix it. Most of the people said to restart the phone by pressing the home button and lock button at the same time. But my lock button is broken!
You can use Assistive Touch to mimic the broken button.
Once you enable it (in Settings -> General -> Accessibility -> Assistive Touch), to turn the phone off, you would activate the assistive touch menu, press "Device", and then press and hold "Lock Screen".
To turn the phone back on, plug it in to a power source (battery, wall socket, or computer).
Let your phone die and then plug it in to restart it.