Bug 965139 - [Email] Acquiring a wifi wakelock while sending an email

1. Acquiring WiFi wake lock before sending the email. (checking for any unreleased old locks and acquiring a new lock)
2. Checking for any lock in the die and releasing it.

https://bugzilla.mozilla.org/show_bug.cgi?id=965139