A series of fatal stabbings in NSW in the past month has prompted the state government to announce it will give police powers to search people for knives without a warrant.