Accessories for electric and electronic locks