Protect RefCount manipulation of InterfaceEndpoint with MultiplexRouter lock

mojo::internal::InterfaceEndpoint has non-thread-safe ref count.
Most of the ref count manipulations are protected by MultiplexRouter::lock_,
but one in InterfaceEndpoint::OnHandleReady is not protected. That may cause
data race on the ref count.

Review-Url: https://codereview.chromium.org/2684213002
Cr-Commit-Position: refs/heads/master@{#449470}


CrOS-Libchrome-Original-Commit: 47ee91d0dc7bfc1afed32d6ce1d7c5311859d1d2
1 file changed
tree: 8b7a8218fa6c8907c8d9dfcfcd04d812f0e13186
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/