Always unlock mutex

Open function could have returned without unlocking the mutex.