Add locking functionality to twitter_stream script

When script is killed with SIGINT lock is released