SOFTHSM-70: Fix memory leak warning by adjusting the destruction order.
Also remove so extra whitespace.
SOFTHSM-70: The functions are not used.
Workstation applications using SQLite normally do not need to invoke either of these routines.