Locks on OpenNI endpoints to avoid overlap between reading frame and shutting down.