Added isLocked method to the Physics project (sprite body)

needed to check if b2world is locked or not