Fix deadlock
Like all the other Put...() methods, PutByteArray() eventually calls Put(), which already locks the same mutex.