Add lock::new_locked primitive to corelib

This creates a lock in a locked state, straightaway.
Add futures to stdlib.
Merge branch 'master' of https://github.com/protz/mezzo