Fixes #39538 RTT_UNLOCK() uses a variable defined in RTT_LOCK() making mandatory to use both function in the same block Signed-off-by: Guillaume Lager <g.lager@innoseis.com>