From : #5 (comment)
What we need also that is after locking the file to write pre install script to be executed before installing new packages, so that it'll automate the process of:
unlock bower file.
continue the installation of the new package.
lock the bower file again.