Port the API to the new paradigm as to avoid having to select LEGACY_TIMEOUT_API. Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>