tryPutMVar package:lifted-base

Generalized version of tryPutMVar.