nirio: Removed modern boost synchronization types to support older versions

- Replaced shared_lock_guard with shared_lock
- Replaced lock_guard with upgrade_lock and upgrade_to_unique_lock
Adding explicit positional arguments to .format strings for compatibility with older Pythons
changed parameter --time to --duration