Use static GMutex

Simplifies the code as well as removes compile warnings about
`g_mutex_new` being deprecated.
Remove unused prototype ps_metal_obj_node_new
Use G_CALLBACK(...) on space_pressed callback

Avoids a compiler warning.