Propagate ELOCKED error when updating the config
Merge pull request #1942 from libgit2/fix/config_propagate_error

Propagate ELOCKED error when updating the config