Fixed options priorities while inheriting
Fixed few potential deadlocks
Fixed potential segfaults on threading=safe