Replace magic number with define
Remove unnecessary tmp variables.
Remove empty lines
Fix deadlock in spki_table_src_remove

The lock wasnt released on error.