Use bn_free to free big numbers

At some places of the code, some big numbers, allocated through
nb_alloc_max(), where freed using free().
They are now free using bn_free()

Signed-off-by: Pascal Brand <pascal.brand@st.com>