These are two separate problems:
1. The error in LOCK TABLES is because the MySQL user accessing your database does not have permission to perform this operation. These privileges are required: CREATE, ALTER, DELETE, INSERT, SELECT, UPDATE, LOCK TABLES
2. The error in session_start() is because the PHP configuration is set up to create session files in the /tmp directory, but the web server software does not have permission to do so.