Create helper type for oneshot::Sender

Move boilerplate for the sender code into a helper type. This moves
all the mutex unwrapping and optional checking into one spot, cleaning
up the call sites.

Test: keystore2_test
Change-Id: I517e091047d11d4ecca73026e5ee288878658fa3
1 file changed