If a unit test times out while generating a private key (e.g. because of a lack of entropy), this avoids a deadlock by still releasing the read lock that'd prevent acquiring the write lock when plugins are unloaded. Closes strongswan/strongswan#2850