Fix wrapper function for creating standard mutex. Fix destruction of Mutex attribute.