Added thread locking for queues.
Fixed imdbinfo issues.
Merge branch 'origin/dev'