Use defer for mutex unlocks, duh