You are missing the fact that this is not possible. There is no API to forcibly add an app widget to a home screen or lockscreen. Not all home screens and lockscreens even support app widgets.
You are welcome to roll your own ROM mod, where your app widget is pre-installed on the home screen, the way manufacturers do.