simple_action_server.py: ensure locks are acquired in same order