Added functionality for setting unlock count

allows to set unlock count after programming