stmhal: Enable uhashlib module; add heapq, hashlib weak links.

hashlib test passes on pyboard.